// swift-tools-version:5.5
import PackageDescription

let package = Package(
    name: "WallpaperApp",
    platforms: [.macOS(.v11)],
    products: [
        .executable(name: "WallpaperApp", targets: ["WallpaperApp"])
    ],
    dependencies: [],
    targets: [
        .target(
            name: "WallpaperLibrary",
            dependencies: [],
            path: "Sources/WallpaperLibrary"
        ),
        .executableTarget(
            name: "WallpaperApp",
            dependencies: ["WallpaperLibrary"],
            swiftSettings: [
                .unsafeFlags(["-Osize"], .when(configuration: .release))
            ],
            linkerSettings: [
                .linkedFramework("AVKit"),
                .linkedFramework("ScreenSaver")
            ])
    ]
)
